import {defineConfig} from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
    base: process.env.NODE_ENV === "production" ? "/upload-file-jdk.docs/" : "/",
    title: "upload-file-jdk",
    description: "Official documentation for plugin Upload-File-Jdk",
    themeConfig: {
        // https://vitepress.dev/reference/default-theme-config
        nav: [
            {text: "首页", link: "/"},
            {text: "使用说明", link: "/quick-start"},
            {text: "版本说明", link: "/version"},
        ],

        sidebar: [
            {
                text: "使用说明",
                items: [
                    {text: "快速开始", link: "/quick-start"},
                    {text: "插件配置", link: "/jdk-config"},
                    {text: "如何引入", link: "/use"},
                    {text: "springboot 中间件", link: "/springboot-middleware"},
                ],
            },
        ],

        socialLinks: [
            {
                icon: "github",
                link: "https://github.com/a572251465/upload-file-jdk"
            },
        ],
    },
});
